<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>发现</title>
    <script src="../js/lib-flexible.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* 头部样式 */
        .header {
            background-color: #00c200;
            height: 0.88rem;
            display: flex;
            align-items: center;
            padding: 0 0.3rem;
            color: #fff;
            font-size: 0.36rem;
            justify-content: center;
            position: relative;
        }

        /* 搜索框样式 */
        .search-box {
            padding: 0.2rem;
            background: #fff;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }

        .search-input {
            flex: 1;
            height: 0.72rem;
            border: 1px solid #ccc;
            border-radius: 0;
            padding: 0 0.2rem;
            font-size: 0.28rem;
            outline: none;
        }

        .search-btn {
            width: 1.2rem;
            height: 0.72rem;
            background: #00c200;
            color: #fff;
            border: none;
            font-size: 0.28rem;
            margin-left: 0.2rem;
        }

        /* 用户列表样式 */
        .user-list {
            background: #fff;
        }

        .user-item {
            display: flex;
            align-items: center;
            padding: 0.24rem;
            border-bottom: 1px solid #eee;
        }

        .user-avatar {
            width: 0.8rem;
            height: 0.8rem;
            border-radius: 50%;
            margin-right: 0.24rem;
        }

        .user-info {
            flex: 1;
        }

        .user-name {
            font-size: 0.28rem;
            color: #333;
            margin-bottom: 0.1rem;
        }

        .user-desc {
            font-size: 0.24rem;
            color: #999;
        }

        .follow-btn {
            width: 0.88rem;
            height: 0.52rem;
            background: #00c200;
            color: #fff;
            border: none;
            font-size: 0.24rem;
        }

        .followed {
            background: #eee;
            color: #999;
        }

        /* 底部导航样式 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            display: flex;
            background: #fff;
            border-top: 1px solid #ddd;
            padding: 0.15rem 0;
            justify-content: space-around;
            height: 1.2rem;
        }
        
        .bottom-nav a {
            flex: 1;
            text-align: center;
            color: #666;
            text-decoration: none;
            font-size: 0.24rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        .bottom-nav img {
            width: 0.5rem;
            height: 0.5rem;
            display: block;
            margin: 0 auto 0.08rem;
        }
        
        .camera-btn {
            width: 1.2rem;
            height: 1.2rem;
            padding: 0;
            border: none;
            background: #fff;
            border-radius: 50%;
            margin-top: -0.4rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 6px rgba(0,0,0,0.2);
        }
        
        .camera-btn img {
            width: 0.6rem;
            height: 0.6rem;
        }
    </style>
</head>
<body>
    <div class="header">
        发现
    </div>

    <div class="search-box">
        <input type="text" class="search-input" placeholder="请输入搜索内容">
        <button class="search-btn">搜索</button>
    </div>

    <div class="user-list">
        <div class="user-item">
            <img src="./images/04index_03.jpg" alt="" class="user-avatar">
            <div class="user-info">
                <div class="user-name">我叫小萌</div>
                <div class="user-desc">我是小萌我怕谁！哈哈哈哈！</div>
            </div>
            <button class="follow-btn">关注</button>
        </div>

        <div class="user-item">
            <img src="./images/04index_03.jpg" alt="" class="user-avatar">
            <div class="user-info">
                <div class="user-name">我叫小萌</div>
                <div class="user-desc">我是小萌我怕谁！哈哈哈哈！</div>
            </div>
            <button class="follow-btn followed">关注</button>
        </div>
    </div>

    <div class="bottom-nav">
        <a href="#">
            <img src="./images/03index_0_08.jpg" alt="">
            <span>首页</span>
        </a>
        <a href="#" class="active">
            <img src="./images/03index_0_10.jpg" alt="">
            <span>发现</span>
        </a>
        <button class="camera-btn">
            <img src="./images/03index_0_03.jpg" alt="">
        </button>
        <a href="#">
            <img src="./images/03index_0_05.jpg" alt="">
            <span>我的</span>
        </a>
        <a href="#">
            <img src="./images/03index_0_13.jpg" alt="">
            <span>退出</span>
        </a>
    </div>

    <script>
        const followBtns = document.querySelectorAll('.follow-btn');
        followBtns.forEach(btn => {
            btn.addEventListener('click', () => {
                btn.classList.toggle('followed');
                btn.textContent = btn.classList.contains('followed') ? '已关注' : '关注';
            });
        });
    </script>
</body>
</html>
